import fetch from "./request.js";

// 查询
export function querySnapshotList(data) {
  return fetch("/nb-pc/1.0.1/SnapshotService/querySnapshotList", {
    method: "post",
    data: data,
  });
}
// 查询随手拍配置
export function querySnapshotConfig(data) {
  return fetch("/nb-pc/1.0.1/SnapshotService/querySnapshotConfig", {
    method: "post",
    data: data,
    headers:{
      "Content-Type":"application/json; charset=utf-8"
    },
    withLoading: true,
  });
}
// 修改
export function updateSnapshot(data) {
  return fetch("/nb-pc/1.0.1/SnapshotService/updateSnapshot", {
    method: "post",
    data: data,
    withLoading: true,
  });
}
// 修改配置
export function updateSnapshotConfig(data) {
  return fetch("/nb-pc/1.0.1/SnapshotService/updateSnapshotConfig", {
    method: "post",
    data: data,
    withLoading: true,
  });
}
// 审核
export function approveSnapshot(data) {
  return fetch("/nb-pc/1.0.1/SnapshotService/approveSnapshot", {
    method: "post",
    data: data,
    withLoading: true,
  });
}
// 统计
export function querySnapshotSummary(data) {
  return fetch("/nb-pc/1.0.1/SnapshotService/querySnapshotSummary", {
    method: "post",
    data: data,
    withLoading: true,
  });
}
// 删除
export function deleteSnapshot(data) {
  return fetch("/nb-pc/1.0.1/SnapshotService/deleteSnapshot", {
    method: "post",
    data: data,
    withLoading: true,
  });
}
